//
//  PhotoCollectionViewCell.m
//  HuiWenMovie
//
//  Created by ios on 15/7/23.
//  Copyright (c) 2015年 ios. All rights reserved.
//

#import "PhotoCollectionViewCell.h"

@implementation PhotoCollectionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        
        _scrollView = [[ScrollView alloc]initWithFrame:self.bounds];
        _scrollView.tag = 100;
        [self.contentView addSubview:_scrollView];
    }
    
    
    return self;
}

- (void)setImageUrlString:(NSString *)imageUrlString
{
    _imageUrlString = imageUrlString;
    [self setNeedsLayout];
}

- (void)layoutSubviews
{
    _scrollView.imageUrl = _imageUrlString;
}

@end
